import { SingleInstance } from './singleinstance'


async function run(){
    const driver = SingleInstance.create_driver();

    await driver.get("https://www.baidu.com/");

    const soutu = await driver.findElement({css:'span[class="soutu-btn"]'});
    await soutu.click();

    const upload = await driver.findElement({css:'input[type="file"]'});
    await upload.sendKeys(__dirname+'/01.png');
}

run();